#include <stdio.h>

int pdrunnian(int n)
{
    if (n % 400 == 0 || (n % 100 != 0 && n % 4 == 0))
    {
        return 1;
    }
    return 0;
}

int main()
{
    for (int n = 1900; n < 2000; n++)
    {
        if (pdrunnian(n))
            printf("%d ", n);
    }
}